package com.jk.dao.account;

import com.jk.entity.account.AccMenuPermission;
import com.jk.util.mybatis.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import org.springframework.dao.DataAccessException;

import java.util.Set;

/**
 * ACC_MENU_PERMISSION dao
 * Tue Sep 22 11:02:19 CST 2015 yanghuan
 */
@MyBatisRepository
public interface AccMenuPermissionDao {

    int deleteByPrimaryKey(@Param(value = "accMenuPermissionId") String key) throws DataAccessException;

    int insert(AccMenuPermission accMenuPermission) throws DataAccessException;

    AccMenuPermission selectByPrimaryKey(@Param(value = "accMenuPermissionId") String key) throws DataAccessException;

    int updateByPrimaryKeySelective(AccMenuPermission accMenuPermission) throws DataAccessException;

    int updateByPrimaryKey(AccMenuPermission accMenuPermission) throws DataAccessException;

    Set<String> selectPermissionIdSet(@Param("accMenuId") String accMenuId) throws DataAccessException;

    void delete(AccMenuPermission accMenuPermission) throws DataAccessException;
}

